const net = require('net');

const client = net.createConnection({ port: 9527 }, () => {
    console.log('connected to server!');
    client.write('hello');
})

client.on('data', (chunk) => {
    console.log(chunk.toString());
})

client.on('end', () => {
    console.log('disconnected from server');
});